﻿<!-- //copyright © kaveh.shahbazian@gmail.com 2013 (see license.txt) -->
<Window x:Class="Funtastic.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Funtastic" Height="800" Width="800" Closing="Window_Closing" Loaded="Window_Loaded">
    <Grid Height="Auto" Width="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Menu Grid.Row="0" Background="LightGray">
            <MenuItem Header="_File">
                <MenuItem Header="_Open" Name="MenuItem_Open" Click="MenuItem_Open_Click" />
                <MenuItem Header="_Save" Name="MenuItem_Save" Click="MenuItem_Save_Click" />
                <MenuItem Header="Save As" Name="MenuItem_SaveAs" Click="MenuItem_SaveAs_Click" />
                <MenuItem Header="_Exit" Name="MenuItem_Exit" Click="MenuItem_Exit_Click" />
            </MenuItem>
            <MenuItem Header="_Edit">
                <MenuItem Header="C_ut" Name="MenuItem_Cut" Click="MenuItem_Cut_Click" />
                <MenuItem Header="_Copy" Name="MenuItem_Copy" Click="MenuItem_Copy_Click" />
                <MenuItem Header="Paste" Name="MenuItem_Paste" Click="MenuItem_Paste_Click" />
            </MenuItem>
        </Menu>
        <GridSplitter Grid.Row="1" Grid.Column="0" 
                      VerticalAlignment="Bottom" HorizontalAlignment="Stretch"
                      Width="Auto" Height="7" 
                      Background="LightGray" ResizeDirection="Rows"></GridSplitter>
        <TextBox Name="TextBoxScript" AcceptsReturn="True" AcceptsTab="True" 
                 FontFamily="Courier New" FontSize="14" 
                 HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" 
                 Grid.Row="1" Margin="0 0 0 7"
                 Background="WhiteSmoke" UndoLimit="48" IsTabStop="True"
                 PreviewKeyDown="TextBoxScript_PreviewKeyDown" TextChanged="TextBoxScript_TextChanged" />
        <TextBox Name="TextBoxOutput" FontFamily="Courier New" FontSize="14" 
                 HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" 
                 IsReadOnly="True" Grid.Row="2" Background="White" 
                 TextChanged="TextBoxOutput_TextChanged" IsTabStop="False" IsUndoEnabled="False" />
    </Grid>
</Window>
